// 登录注册接口
import {
	myRequest
} from "../utils/request.js"

// 注册
export function register(data) {
	return myRequest({
		url: "shop/login/register",
		method: "post",
		data: data || {}
	})
}
// 手机号快捷登录
export function mobileLogin(data) {
	return myRequest({
		url: "shop/login/mobile",
		method: "post",
		data: data || {}
	})
}
// 账号密码登录
export function pwdLogin(data) {
	return myRequest({
		url: "shop/login/password",
		method: "post",
		data: data || {}
	})
}
// 手机号快捷登录
export function miniAppLogin(data) {
	return myRequest({
		url: "shop/login/miniAppLogin",
		method: "post",
		data: data || {}
	})
}
// 支付宝授权登录
export function alipayLogin(data) {
	return myRequest({
		url: "shop/login/alipayLogin",
		method: "post",
		data: data || {}
	})
}
// 刷新Token
export function refresh(data) {
	return myRequest({
		url: "shop/login/refresh",
		method: "post",
		data: data || {}
	})
}
// 退出登录
export function logout(data) {
	return myRequest({
		url: "shop/login/logout",
		method: "post",
		data: data || {}
	})
}
// 微信公众号登录
export function wechartLogin(data) {
	return myRequest({
		url: "shop/login/wechartLogin",
		method: "post",
		data: data || {}
	})
}
//绑定手机号
export function bindingMobile(data) {
	return myRequest({
		url: "shop/user/bindingMobile",
		method: "post",
		data: data || {}
	})
}
export function infoWechartLogin(data) {
	return myRequest({
		url: "shop/login/infoWechartLogin",
		method: "post",
		data: data || {}
	})
}
